package tests.testrunner;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import testrunner.core.TestRunner;

public class ApplicationRunnerhowDoesUserDecideTests {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	private boolean expected;
	private boolean actual;

	@Before
	public void setUp() throws Exception {
		
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void howDoesUserDecideactualYexpectedTrue() throws InterruptedException {
		
		TestRunner testRunner = new TestRunner();
		expected = true;
		actual = testRunner.howDoesUserDecide("y");
		assertEquals(expected, actual);
		
	}
	
	@Test
	public void howDoesUserDecideactualYexpectedFalse() throws InterruptedException {
		
		TestRunner testRunner = new TestRunner();
		expected = false;
		actual = testRunner.howDoesUserDecide("y");
		assertEquals(expected, actual);
		
	}
	
	@Test
	public void howDoesUserDecideactualNexpectedFalse() throws InterruptedException {
		
		TestRunner testRunner = new TestRunner();
		expected = false;
		actual = testRunner.howDoesUserDecide("n");
		assertEquals(expected, actual);
		
	}
	
	@Test
	public void howDoesUserDecideactualNexpectedTrue() throws InterruptedException {
		
		TestRunner testRunner = new TestRunner();
		expected = true;
		actual = testRunner.howDoesUserDecide("n");
		assertEquals(expected, actual);
		
	}
	/**
	 * if you can else values test, uncomment this items
	 *
	@Test
	public void howDoesUserDecideAnythingElseexpectedFalse() {
		
		TestRunner testRunner = new TestRunner();
		expected = false;
		actual = testRunner.howDoesUserDecide("");
		assertEquals(expected, actual);
		
	}
	
	@Test
	public void howDoesUserAnythingElseexpectedTrue() {
		
		TestRunner testRunner = new TestRunner();
		expected = true;
		actual = testRunner.howDoesUserDecide("");
		assertEquals(expected, actual);
		
	}
	*/

}
